/*
 * @Author: zengxiaolong 1513107860@qq.com
 * @Date: 2023-02-16 14:52:12
 * @LastEditors: zengxiaolong 1513107860@qq.com
 * @LastEditTime: 2023-02-28 15:34:52
 * @FilePath: \Freshmen-enrollment-management\mock\finance.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
const financesList = {
  list: [
    {
      userId: '戴怡凡',
      orderName: '学费',
      money: '5000',
      orderDesc: '学费缴纳'
    },
    {
      userId: '曾小龙',
      orderName: '学费',
      money: '5000',
      orderDesc: '学费缴纳'
    },
    {
      userId: '吴德怀',
      orderName: '学费',
      money: '5000',
      orderDesc: '学费缴纳'
    },
    {
      userId: '胡峻',
      orderName: '学费',
      money: '5000',
      orderDesc: '学费缴纳'
    },
    {
      userId: '邓联龙',
      orderName: '学费',
      money: '5000',
      orderDesc: '学费缴纳'
    },
    {
      userId: '刘进',
      orderName: '学费',
      money: '5000',
      orderDesc: '学费缴纳'
    },
    {
      userId: '邓响芳',
      orderName: '学费',
      money: '5000',
      orderDesc: '学费缴纳'
    },
    {
      userId: '刘杰',
      orderName: '学费',
      money: '5000',
      orderDesc: '学费缴纳'
    },
    {
      userId: '贺斌',
      orderName: '学费',
      money: '5000',
      orderDesc: '学费缴纳'
    },
    {
      userId: '刘杰',
      orderName: '学费',
      money: '5000',
      orderDesc: '学费缴纳'
    },
    {
      userId: '李嘉祥',
      orderName: '学费',
      money: '5000',
      orderDesc: '学费缴纳'
    },
    {
      userId: '洪燕妮',
      orderName: '学费',
      money: '5000',
      orderDesc: '学费缴纳'
    },
  ],
  total: 12
}

module.exports = [
  // finances search 资源查找
  {
    url: '/finances/search',
    type: 'post',
    response: _ => {
      return {
        code: 20000,
        data: financesList
      }
    }
  },

  // finances add 资源新增
  {
    url: '/finances/add',
    type: 'post',
    response: _ => {
      return {
        code: 20000,
        data: 'success'
      }
    }
  },

  // finances delete 资源删除
  {
    url: '/finances/delete',
    type: 'post',
    response: _ => {
      return {
        code: 20000,
        data: 'success'
      }
    }
  },

  // finances update 资源更新
  {
    url: '/finances/update',
    type: 'post',
    response: _ => {
      return {
        code: 20000,
        data: 'success'
      }
    }
  },

  // finances get 获取所有资源
  {
    url: '/finances/get',
    type: 'get',
    response: _ => {
      return {
        code: 20000,
        data: []
      }
    }
  },
]